<?php
namespace app\validate;

use think\Validate;

class User extends Validate
{
    protected $rule = [
        'nickname'   => 'require|max:64',
        'avatar_url' => 'url|max:255'
    ];
    
    // ... 其他验证规则保持不变 ...
}
